﻿using IDAL;
using model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    public class MemDAL:IMemberDAL
    {
        public MemDAL(Base<member> db)
        {
            Db = db;
        }

        public Base<member> Db { get; }

        public int Add(member m)
        {
            return Db.Add(m);
        }

        public List<member> Show() { 
        return Db.Show();
        }

        public int Delete(int id)
        {
            return Db.Delete(id);
        }

        public member Fantian(int id)
        {
            return Db.Fantian(id);
        }

        public int Update(member m)
        {
            return Db.Update(m); 
        }

    }
}
